home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfsdefrg.zoo / hdio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-18  |  1.3 KB  |  45 lines

  1. /* Comment out this next line if you want to force ICD physical mode */
  2. /*#define NO_ICD_PHYS*/ 
  3.  
  4. extern char *hdd_err[];
  5.  
  6. /* This structue is set/passed by disk I/O functions. */
  7.  
  8.  
  9. struct hdinfo
  10. {
  11.     long start;    /* Partition start in physical sectors */
  12.     long size;    /* Partition size in physical sectors */
  13.     int scsiz;    /* Sector size 0=1K 1=512bytes */
  14.     int rwmode;    /* how to access partition */
  15.     /* Valid rw modes */
  16. #define RW_NORMAL    0x0    /* Normal Rwabs */
  17. #define RW_PHYS        0x1    /* Physical Rwabs */
  18. #define RW_XHDI        0x2    /* XHDI */
  19. #define RW_MODE        0x1f    /* Mask for I/O modes */
  20. #define RW_LRECNO    0x20    /* Use lrecno */
  21. #define RW_CHECK    0x40    /* Check partition boundaries */
  22.     int major;    /* major device number, unit number or device */
  23.     int minor;    /* minor device number or pun */
  24. };
  25.  
  26. #ifdef __STDC__
  27. # define    P(s) s
  28. #else
  29. # define P(s) ()
  30. #endif
  31.  
  32.  
  33. /* hdio.c */
  34. int get_hddinf P((int drive , struct hdinfo *hdinf , int flag ));
  35. int _get_hddinf P((int drive , struct hdinfo *hdinf , int flag ));
  36. int set_lrecno P((struct hdinfo *hdinf , long size ));
  37. int test_lrecno P((int drive , int mode ));
  38. int no_lrecno P((int drv ));
  39. int no_plrecno P((int drv ));
  40. int no_xhdi P((void));
  41. int init_icd P((void));
  42. long block_rwabs P((int rw , void *buf , unsigned num , long recno , struct hdinfo *hdinf ));
  43.  
  44. #undef P
  45.